
/**
 * 针对商城外包接口类的服务
 * @author zhaoxi
 */

import request from '@/utils/request'

// 获取列表
export function slideshowGetList(pd) {
  return request({
    url: '/api/mall/slideshow/getList',
    headers: {
      isToken: false
    },
    method: 'get',
    params: pd
  })
}


// 获取条数
export function slideshowGetCount(pd) {
  return request({
    url: '/sys/slideshow/getCount',
    method: 'get',
    params: pd
  })
}

// 新增
export function slideshowAdd(data) {
  return request({
    url: '/sys/slideshow',
    method: 'post',
    data: data
  })
}

// 修改
export function slideshowEdit(pd) {
  return request({
    url: '/sys/slideshow',
    method: 'put',
    data: pd
  })
}

// 删除参数配置
export function slideshowDel(id) {
  return request({
    url: '/sys/slideshow/id/' + id,
    method: 'delete'
  })
}